<template>
   <div>
    <div class="row">
      <div class="col-xs-offset-2 col-xs-8">
        <div class="page-header">
          <Banner/>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
         <!-- <a class="list-group-item active" href="./about.html">About</a>
         <a class="list-group-item" href="./home.html">Home</a> -->
         <!---使用vue-router提供的dom标签包装a标签，实现页面按需展示相应的组件的内容，而不是整个页面的刷新-->
         <router-link class="list-group-item" active-class="active" to="/about">About</router-link>
         <router-link class="list-group-item" active-class="active" to="/home">Home</router-link>
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!--注意这里通过路由视图组件展示具体组件的信息,路由跳转到那个组件这里就动态展示那个组件的内容 这里区别于</About>和</Home>-->
            <span>按需展示的相关内容</span>
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Banner from './components/Banner.vue';
export default {
  name: "App",
  components:{
    Banner,
  },
  data(){
    return {
      
    }
  }
}
</script>
<style lang="css">

</style>



